package com.xfsg.core.operationlog.service.impl;


import com.xfsg.core.operationlog.beans.Operator;
import com.xfsg.core.operationlog.service.IOperatorGetService;

/**
 * @Classname DefaultOperatorGetServiceImpl
 * @Description TODO
 * @date 2022/1/19 21:00
 * @author ZhangYi
 */
public class DefaultOperatorGetServiceImpl implements IOperatorGetService {

    @Override
    public Operator getUser() {
        // return Optional.ofNullable(UserUtils.getUser())
        //                .map(a -> new Operator(a.getName(), a.getLogin()))
        //                .orElseThrow(()->new IllegalArgumentException("user is null"));
        Operator operator = new Operator();
        operator.setOperatorId("111");
        return operator;
    }
}
